﻿/****************************************************************************
*                                                                           *
* Copyright (c) Ionescu M. Marius. All rights reserved(2010).               *
*                                                                           *
****************************************************************************/

using System;
using System.Collections;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Text.RegularExpressions;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Globalization;

public partial class TestPage : SessionPageBase
{
	protected void Page_Load(object sender, EventArgs e)
	{
		if (IsPostBack)
		{
            btnTest_Click(null, null);
		}
	}

    protected void btnTest_Click(object sender, EventArgs e)
    {
        try
        {
            string s = "23.298";
            int x = 78;
            object t = 1289.89;
            Int64 myInt = -1234;

            s = Tools.GetNumberInEnglishFormat(s);
            txtTest.Text = Tools.GetNumberWithDigits(myInt, 8, ".", ",");

            DataSet ds = Hipocrate.DB.DBConnection.GetData("select top 1 * from users");
            if (ds.Tables[0].Rows.Count > 0)
                textB.Text = ds.Tables[0].Rows[0]["Name"].ToString();
        }

        catch (Exception ex)
        {
            this.SetMessage(ex.Message, true);
        }
    }
}
